home *** CD-ROM | disk | FTP | other *** search
- Path: news.pncl.co.uk!news
- From: henrya@pncl.co.uk (Henry Audley-Charles)
- Newsgroups: comp.lang.c
- Subject: Deleting lines from text files.
- Date: Mon, 25 Mar 1996 21:51:20 GMT
- Organization: Pinnacle Internet Services
- Message-ID: <4j749k$qs9@eiger.pncl.co.uk>
- Reply-To: henrya@pncl.co.uk
- NNTP-Posting-Host: login23.pncl.co.uk
- X-Newsreader: Forte Free Agent 1.0.82
-
- My text file contains numbers in the range 01 to 49 ie lottery style.
- Each set of six numbers occupies a line of text in the .dat file. I
- can add new lines at the end but can't delete lines. Also, what is
- the difference between fprintf (" ...... "); & fwrite (stream, "
- .. ") etc. I have tried both but seem to end up with the wrong
- bits being removed. I think its somthing to do with fseek or rewind.
- P L E A S E H E L P ! :(
-
- Please mail all ideas to henrya@pncl.co.uk
-
- Thanx.
-
-